
<%@page import="java.util.ArrayList;"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Pagina de Impressão</title>
    </head>
    <body>
        <jsp:useBean id="prescricao" type="ArrayList<String>" scope="request" />
        <table>
            <tr>
                <td colspan="2" align="center">Perscrição</td>
            </tr>
            <tr>
                <td>Nome da Mãe</td>
                <td><%= prescricao.get(1)%></td>
            </tr>
            <tr>
                <td>Numero do leito</td>
                <td><%= prescricao.get(0)%></td>
            </tr>
            <tr>
                <td>Medicamento</td>
                <td><%= prescricao.get(3)%></td
            </tr>
            <tr>
                <td>Quantidade</td>
                <td><%= prescricao.get(2)%></td>
            </tr>
            <tr>
                <td colspan="2" align="center"><a href="javascript:window.print();">Imprimir</a></td>
            </tr>
        </table>
    </body>
</html>
